# Makefile. 
#
# Use 'make' para a versao release.
# Use 'make debug' para a versao debug.
# Use 'make clean' para limpar tudo.
#

FLAGS=
CC=g++
	
all: release

clean: 
	rm -rf *.o run 

debug: FLAGS += -g
release: FLAGS += -s -O3

debug: build
release: build

build:  main.o
	$(CC) $(FLAGS) main.o -o run

main.o: main.cpp skiplist.h skiplist.cpp
	$(CC) -c $(FLAGS) main.cpp
